package com.example.administrator.androidros.utils;

/**
 * Created by Administrator on 2017/12/25.
 */

public class ServerConstants {
            public static final String SERVER_DOMAIN = "http://120.78.173.29:8082";
//    public static final String SERVER_DOMAIN = "http://169.254.112.16:8080";
//    public static final String SERVER_DOMAIN = "http://172.20.10.3:8080";

    //NettyClient监听端口
    public static final String NETTY_IP = "120.78.173.29";
//    public static final String NETTY_IP = "169.254.112.16";
//    public static final String NETTY_IP = "172.20.10.3";

    public static final int NETTY_PORT = 8888;

    //资源
    public static final String FILE_SERVER_URL = SERVER_DOMAIN + "/smarthome_file/img/";

    public static final String SERVER_URL = SERVER_DOMAIN + "/smarthome";

    /**
     * 登录
     */
    public static final String LOGIN = SERVER_URL + "/authMember/login.json";

    /**
     * 登出
     */
    public static final String LOGOUT = SERVER_URL + "/authMember/logout.json";


    /**
     * 注册,找回密码
     */
    public static final String REGISTER = SERVER_URL + "/authMember/register.json";

    /**
     * 找回密码
     */
//    public static final String UPDATE_PASSWORD = SERVER_URL + "/authMember/updatePassword.json";

    /**
     * 添加设备
     */
    public static final String ADD_APPLIANCE = SERVER_URL + "/applianceMaster/addAppliance.json";

    /**
     * 查询设备列表
     */
    public static final String QUERY_APPLIANCE_LIST = SERVER_URL + "/applianceMaster/queryApplianceList.json";

    /**
     * 删除设备
     */
    public static final String DELETE_APPLIANCE = SERVER_URL + "/applianceMaster/deleteAppliance.json";

    /**
     * 修改设备名称
     */
    public static final String UPDATE_APPLIANCE_NAME = SERVER_URL + "/applianceMaster/updateApplianceName.json";

    /**
     * 查询设备信息
     */
    public static final String GET_APPLIANCE_MESSAGE = SERVER_URL + "/applianceMaster/getApplianceMessage.json";

    /**
     * 添加场景
     */
    public static final String ADD_SCENE = SERVER_URL + "/sceneMaster/addScene.json";

    /**
     * 查询场景列表
     */
    public static final String QUERY_SCENE_LIST = SERVER_URL + "/sceneMaster/querySceneList.json";

    /**
     * 删除场景
     */
    public static final String DELETE_SCENE = SERVER_URL + "/sceneMaster/deleteScene.json";

    /**
     * 修改场景名称
     */
    public static final String UPDATE_SCENE_NAME = SERVER_URL + "/sceneMaster/updateSceneName.json";

    /**
     * 查询家电当前状态
     */
    public static final String QUERY_APPLIANCE_STATUS = SERVER_URL + "";

    /**
     * 场景添加设备：
     */
    public static final String ADD_SCENE_APPLIANCE = SERVER_URL + "/applianceMaster/addSceneAppliance.json";

    /**
     * 场景删除设备
     */
    public static final String DELETE_SCENE_APPLIANCE = SERVER_URL + "/applianceMaster/deleteSceneAppliance.json";

    /**
     * 设备是否存在
     */
    public static final String IS__APPLIANCE_EXIST = SERVER_URL + "/applianceMaster/isApplianceExist.json";

    /**
     * 更新个人信息
     */
    public static final String UPDATE_MEMBER_INFO = SERVER_URL + "/authMember/updateMemberInfo.json";

    public static final String UPLOAD_AVATAR = SERVER_URL + "/common/uploadImageForAPP.json";

    /**
     * 查询信息
     */
    public static final String ADD_MESSAGE = SERVER_URL + "/messageMaster/addMessage.json";

    /**
     * 查询信息
     */
    public static final String QUERY_MESSAGE = SERVER_URL + "/messageMaster/queryMessageList.json";

    /**
     * 更新信息
     */
    public static final String UPDATE_MESSAGE = SERVER_URL + "/messageMaster/updateMessage.json";

    /**
    *查询授权列表
    */
    public static final String QUERY_AUTHORIZED_LIST = SERVER_URL + "/authorizedMaster/queryAuthorizedList.json";
}
